import React, { Component } from 'react';
import { Route,Switch,Redirect } from 'react-router-dom'
import Home from './views/Home'
import Notfound from './views/Notfound'
import Search from './views/Search'

class App extends Component {
  render() {
    return (
      <Switch>
        <Route path="/home" component={Home} />
        <Route path="/search" component={Search} />
        <Redirect exact from="/" to="/home" />
        <Route path="*" component={Notfound} />
      </Switch>
    );
  }
}

export default App;

